<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
</head>
<body>
<center>
    <table>
        <tr>
            <th>文件名</th>
            <th>文件大小</th>
            <th>创建时间</th>
            <th>操作</th>
        </tr>
        <c:forEach var="file" items="${fileInfos}">
            <tr>
                <td>${file.fileName}</td>
                <td>${file.fileSize}</td>
                <td>${file.createDate}</td>
                <td><a href="fileDownLoadServlet?fileName=${file.fileName}">下载</a>|<a href="fileDeleteServlet?fileName=${file.fileName}">删除</a></td>
            </tr>
        </c:forEach>
    </table>


    <!-- application/x-www-form-urlencoded -->
    <form action="fileUploadServlet" method="post" enctype="multipart/form-data">
        <p>
            <label for="file">上传文件:</label>
            <input type="file" id="file"  name="file"/>
        </p>

        <p>
            <input type="submit" value="上传文件" />
        </p>
    </form>
</center>
</body>
</html>